﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <link href="~/Assets/css/previewImage.css" rel="stylesheet" />
    <link href="~/Assets/css/mui.picker.min.css" rel="stylesheet" />
    <script src="~/Assets/js/mui.picker.js"></script>
    <script src="~/Assets/js/mui.picker.min.js"></script>
    <script src="~/Assets/js/mui.dtpicker.js"></script>
    <style>
        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }

        .btn_addPic {
            display: block;
            position: relative;
            width: 53px;
            height: 53px;
            overflow: hidden;
            cursor: pointer;
            text-align: center;
        }

        .filePrew {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 53px;
            height: 53px;
            opacity: 0;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left" style="color:white;">
        <span class="mui-icon mui-icon-left-nav" style=""></span>
    </button>
    <h1 class="mui-title" style="color:white;">应急预案详细</h1>
</header>

<div class="mui-content">
    <div class="mui-content-padded" style="margin: 5px;" ng-cloak ng-controller="EmergencyController" ng-init="
      Id='@(Request.QueryString["Id"].IsEmpty() ? "" : Request.QueryString["Id"])';
     MGetPlanFormDetail(Id);
     GetParkList();
     GetDepartmentList();
     ">
        <form class="mui-input-group">
            <div class="mui-input-row">
                <label>制定部门</label>
                <input type="text" ng-model="PlanFormDetail.DepartmentName" disabled />
            </div>
            <div class="mui-input-row">
                <label>类型</label>
                <label ng-show="PlanFormDetail.TypeId==1">公用</label>
                <label ng-show="PlanFormDetail.TypeId==2">专项</label>
            </div>
            <div class="mui-input-row">
                <label>所有用户可见</label>
                <label ng-show="PlanFormDetail.IsPublic">是</label>
                <label ng-show="!PlanFormDetail.IsPublic">否</label>
            </div>
            <div class="mui-input-row">
                <label>有效期</label>
                <input type="text" ng-model="PlanFormDetail.ValidDate" disabled />
            </div>
            <div class="mui-input-row">
                <label>版本号</label>
                <input type="text" ng-model="PlanFormDetail.Version" disabled />
            </div>
            <div class="mui-input-row">
                <label>关键字</label>
                <input type="text" ng-model="PlanFormDetail.Keywords" disabled />
            </div>
        </form>

        <h5 class="mui-content-padded">&nbsp;&nbsp;摘要：</h5>
        <div class="mui-input-row" style="margin: 10px 5px;">
            <textarea id="textarea" rows="5" placeholder="摘要" ng-model="PlanFormDetail.Summary" disabled></textarea>
        </div>
        <h5 class="mui-content-padded">&nbsp;&nbsp;备注：</h5>
        <div class="mui-input-row" style="margin: 10px 5px;">
            <textarea id="textarea" rows="5" placeholder="此处输入备注" ng-model="PlanFormDetail.Remark" disabled></textarea>
        </div>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;导引图</p>
        <div class="row image-list" style="margin-top:20px;margin-bottom:50px;">
            <img class="image-item space" style="display:inline-block;margin-left:10px;" ng-src="{{PlanFormDetail.DiagramFile.FilePath}}" width="50" data-preview-src="" data-preview-group="2" />
        </div>
        <p ng-show="PlanFormDetail.FileList.length>0">&nbsp;&nbsp;&nbsp;&nbsp;相关照片</p>
        <div class="row image-list" style="margin-top:20px;margin-bottom:50px;">
            <img class="image-item space" style="display:inline-block;margin-left:10px;" ng-src="{{x.FilePath}}" width="50" data-preview-src="" data-preview-group="1" ng-repeat="x in PlanFormDetail.FileList" />
        </div>
    </div>
</div>
<div style="height:80px;">

</div>

@section js{

    <script src="~/Assets/js/libs/upload.js"></script>
    <script src="~/Assets/js/mui.zoom.js"></script>
    <script src="~/Assets/js/mui.previewimage.js"></script>
    <script src="~/Assets/js/pg/Emergency.js?v=@DateTime.Now.ToString("yyyyMMddHH")"></script>
    <script>

        mui.showLoading("正在加载..", "div");

        setTimeout(function () {
            mui.hideLoading();
            mui.previewImage();
        }, 2000);
    </script>
}
